<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>
	   	<f:viewParam name="bulletinId" value="#{bulletinHome3.id}"></f:viewParam>
	   	<f:event listener="#{bulletinHome3.initConversation()}" type="preRenderView"></f:event>
	   	<f:viewParam name="moduleName" value="驳回公告"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="editForm">         
			<p:panel id="panel" header="公告驳回原因填写" style="margin-bottom:10px;">
		       <p:messages id="messages" closable="true"><p:autoUpdate/></p:messages>
		        
		        <h:panelGrid columns="2" cellpadding="5">
					<p:outputLabel for="reason" value="驳回原因" />				
					<p:inputTextarea cols="30" id="reason" 
							  	  value="#{bulletinHome3.rejectReason}"
						       required="true" />
				</h:panelGrid>
			</p:panel>
			
			<p:commandButton action="#{bulletinHome3.reject()}" value="保存" ajax="false" />
			<p:commandButton action="#{bulletinHome3.cancel()}" value="取消" immediate="true"></p:commandButton>	
			
		</h:form>
      
   	</ui:define>
</ui:composition>
